package com.cw.mapper;

import com.cw.beans.User;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.ArrayList;
import java.util.Map;

@Repository
public interface UserMapper {
    User getUser(User user);

    void registeruser(@Param("user") User user);

    ArrayList<User> getUserList();
    User getUserById(int id);
    void addUser(User user);
    void updateUser(@Param("user") User user);
    User getUserByUserName(String username);

    void del(int id1);
}
